<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>个人信息</title>
 <style>
    .left
    {
    float:left;
    text-align: right;
    }
    .right
    {
    float:left;
    width: 10%;
    margin-left:0px;
     text-align: left;
    }
    .history
    {
    width: 100%;
    text-align: center;
    margin-top: 20px;float: left;
    }
 .t1
 {
 	width: 12.5%;
 	float: left;
 	height: 30px;
background-color: gainsboro;
 	border: solid 1px white;
 }
 .t2
 {
 	width: 12.5%;
 	float: left;
 	height: 50px;

 	border: solid 1px lightgray;
 }
</style>
</head>
<body>
 <div id="homepage" style="width: 100%;height: 1000px;background-color:##C2C2C2;">
     <div id="tittle" style="width: 100%;float: left;text-align: center;">
	    <font size="6" style="font-weight: 700;">个人信息</font>
		    </div>
		    	<!--显示头像 -->
		    	<div id="myimg" style="width: 13%;height: 200px;float:left;border: solid 1px greenyellow;margin-left: 34.5%;margin-top: 30px;">
		    	<img  src="Resources/images/shop_img/cat1.jpg" width="100%"height="100%"/>
		    </div>
    
    <!-- 个人信息 -->
    <div id="person" style="width: 20%;float: left;margin-left: 3%;">
		<div class="history" style="width: 100%;text-align: center;margin-top: 30px;float: left;">
		    <div class="left">
		   		<font size="4" style="font-weight: 400;">用户ID：</font>
		    </div>
		    <div class="right">
		   		<font size="4" style="font-weight: 400;text-decoration: underline;">${user.uid}</font>
		    </div>
	    </div>
	    <div class="history" style="width: 100%;text-align: center;margin-top: 30px;float: left;">
		    <div class="left">
		   		<font size="4" style="font-weight: 400;">姓名：</font>
		    </div>
		    <div class="right">
		   		<font size="4" style="font-weight: 400;text-decoration: underline;">${user.uname}</font>
		    </div>
	    </div>
	    
	    <div class="history">
		    <div class="left">
			    <font size="4" style="font-weight: 400;">性别：</font>
		   	</div>
		    <div class="right">
			    <font size="4" style="font-weight: 400;text-decoration: underline;">${user.sex }</font>
		    </div>
	    </div>
	    
	    <div class="history">
		    <div class="left">
		    	<font size="4" style="font-weight: 400;">邮箱地址：</font>
		    </div>
		    <div class="right">
		   		<font size="4" style="font-weight: 400;text-decoration: underline;">${user.email}</font>
		    </div>
	    </div>
	    
	    <div class="history">
		    <div class="left">
		    	<font size="4" style="font-weight: 400;">联系方式：</font>
		    </div>
		    	<div class="right">
		    <font size="4" style="font-weight: 400;text-decoration: underline;">${user.telephone}</font>
		    </div>
	    </div>
	    
	    <div class="history">
		    <div class="left">
		    	<font size="4" style="font-weight: 400;">账户余额：</font>
		    </div>
		    <div class="right">
		    	<font size="4" style="font-weight: 400;text-decoration: underline;">￥${user.balance}</font>
		    </div>
	    </div>
	    
 	</div>
 	
     <div id="t"style="width: 100%;text-align: center;float: left;margin-top: 20px;">
    		<a href="jump?status=myrecharge&uid=${user.uid}"><font size="5">充值</font>
    		<a href="jump?status=uinfochange&uid=${user.uid}"><font size="5" style="margin-left: 10%;">修改</font></a>
   	</div>
   
    <!--
    	订单
    -->   
    <div id="order"style="width: 100%;margin-top: 50px;float: left;">
    <div id="ordertittle" style="width:50%;margin-top: 30px;float: left;text-align: center;background-color: gainsboro;margin-left: 25%;">
    <font size="5" style="font-weight: 700;">历史订单</font>
    </div>
    <div id="order" style="width: 50%;float: left;text-align: center;margin-left: 25%;height: 31px;">
    	<div class="t1">
    		<font>订单编号</font>
    	</div>
    	<div class="t1">
    		<font>用户名</font>
    	</div>
    	<div class="t1">
    		<font>商品名</font>
    	</div>
    	<div class="t1">
    		<font>数量</font>
    	</div>
    	<div id="addt" style="width: 48.6%;float: left;	height: 30px;background-color: gainsboro;border: solid 1px white;">
    		<font>地址</font>
    	</div>
    </div>
    <div id="order" style="width: 50%;float: left;text-align: center;line-heigth:30px;margin-left: 25%;height: 30px;">
   		<c:forEach items="${myorder}" var="order" varStatus="st">
   			<div class="t2" style="height: 50px;line-height:50px;">${order.oid }</div>
    		<div class="t2" style="height: 50px;line-height:50px;">${order.user.uname }</div>
    		<div class="t2" style="height: 50px;line-height:50px;">${order.good.gName}</div>
    		<div class="t2" style="height: 50px;line-height:50px;">${order.oNum}</div>
    		<div id="adds" style="width: 48.6%;float: left;	height: 50px; line-height:50px; border: solid 1px lightgray;">
    		</div>
   		</c:forEach>
    </div>
 </div>
</div>
</body>
</html>